<template>
	<view>
		<view class="fu" v-for="item in listarr" :key="item.id">
			<view class="">
				{{item.title}}
			</view>
			<view class="">
				<view class="">
					发表时间&nbsp;{{item.add_time.slice(0,10)}}
				</view> 
				<view class="">
					浏览:&nbsp;{{item.click}}
				</view>
			</view>
			<view class="" v-html="item.content">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				listarr:[]
			}
		},
		onLoad(option) {
			console.log(option)
			this.id=option.id
			this.getlist()
		},
		methods: {
			async getlist(){
				const data =await uni.$http.get(`/getnew/${this.id}`)
				console.log(data)
				this.listarr=data.message
			}
		}
	}
</script>

<style>
.fu :nth-child(2){
	display: flex;
	justify-content: space-between;
	margin-top: 20rpx;
	align-items: flex-end ;
}
</style>
